package com.ruoyi.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mobile.mapper.ArticleTagRelationMapper;
import com.ruoyi.mobile.domain.ArticleTagRelation;
import com.ruoyi.mobile.service.IArticleTagRelationService;

/**
 * 文章标签关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-19
 */
@Service
public class ArticleTagRelationServiceImpl implements IArticleTagRelationService 
{
    @Autowired
    private ArticleTagRelationMapper articleTagRelationMapper;

    /**
     * 查询文章标签关联
     * 
     * @param id 文章标签关联主键
     * @return 文章标签关联
     */
    @Override
    public ArticleTagRelation selectArticleTagRelationById(Integer id)
    {
        return articleTagRelationMapper.selectArticleTagRelationById(id);
    }

    /**
     * 查询文章标签关联列表
     * 
     * @param articleTagRelation 文章标签关联
     * @return 文章标签关联
     */
    @Override
    public List<ArticleTagRelation> selectArticleTagRelationList(ArticleTagRelation articleTagRelation)
    {
        return articleTagRelationMapper.selectArticleTagRelationList(articleTagRelation);
    }

    /**
     * 新增文章标签关联
     * 
     * @param articleTagRelation 文章标签关联
     * @return 结果
     */
    @Override
    public int insertArticleTagRelation(ArticleTagRelation articleTagRelation)
    {
        return articleTagRelationMapper.insertArticleTagRelation(articleTagRelation);
    }

    /**
     * 修改文章标签关联
     * 
     * @param articleTagRelation 文章标签关联
     * @return 结果
     */
    @Override
    public int updateArticleTagRelation(ArticleTagRelation articleTagRelation)
    {
        return articleTagRelationMapper.updateArticleTagRelation(articleTagRelation);
    }

    /**
     * 批量删除文章标签关联
     * 
     * @param ids 需要删除的文章标签关联主键
     * @return 结果
     */
    @Override
    public int deleteArticleTagRelationByIds(Integer[] ids)
    {
        return articleTagRelationMapper.deleteArticleTagRelationByIds(ids);
    }

    /**
     * 删除文章标签关联信息
     * 
     * @param id 文章标签关联主键
     * @return 结果
     */
    @Override
    public int deleteArticleTagRelationById(Integer id)
    {
        return articleTagRelationMapper.deleteArticleTagRelationById(id);
    }
}
